﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="SheetManager.aspx.cs" Inherits="LotteryVote.SheetManager" %>

<%@ Register Src="~/Controls/Pager.ascx" TagPrefix="LV" TagName="Pager" %>
<%@ Register Src="~/Controls/OrderSearchBar.ascx" TagPrefix="LV" TagName="OrderSearch" %>
<asp:Content ID="Header" ContentPlaceHolderID="head" runat="server">
    <link href="Style/TableBaseStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="main" runat="server">
<div id="searchBar"></div>
    <div class="content">
        <asp:Repeater ID="rpt_sheet" runat="server" 
            onitemcommand="rpt_sheet_ItemCommand">
            <HeaderTemplate>
                <table cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <td>
                                <%=GetGlobalResourceObject("Resource","No") %>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource", "SheetNum")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource", "Name")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource","Time") %>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource","Num") %>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource", "TurnOver")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource", "Commission")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource", "NetAmount")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource","IPAddress") %>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("Resource","Action")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Container.ItemIndex+1 %>
                    </td>
                    <td>
                        <%#Eval("SheetId")%>
                    </td>
                    <td>
                        <%#Eval("User.UserName") %>
                    </td>
                    <td>
                        <%#Eval("CreateTime") %>
                    </td>
                    <td>
                        <%#Eval("Num")%>
                    </td>
                    <td>
                        <%#Eval("Turnover")%>
                    </td>
                    <td>
                        <%#Eval("Commission")%>
                    </td>
                    <td>
                        <%#Eval("NetAmount")%>
                    </td>
                    <td>
                        <%#Eval("IPAddress") %>
                    </td>
                    <td>
                        <asp:LinkButton ID="lbtn_cancel" runat="server" Text="<%$Resources:Resource,Cancel %>"
                            CommandArgument='<%#Eval("SheetId") %>' CommandName="cancel" OnClientClick="return confirm('Are you sure?')"></asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </asp:Repeater>
        <LV:Pager ID="lv_pager" runat="server" Class="Gray" />
    </div>
</asp:Content>
